<?php

class backgroundBase {
	public $Model;
	public $Debug;

	public function __construct($isModuleName) {
		global $_config;

		/* nacteni modelu pro controller */
		require "./app/model/M".$isModuleName.".php";
		$lsClassName = "M".$isModuleName."Class";
		$this->Model = new $lsClassName;

		/* nacteni debugu */
		$this->Debug = new systemDebug($_config["debug"]["enable"], "BackgroundDebug.txt");
	}
}